package request


type TaobaoOpentradeToolsItemsQueryRequest struct {
    /*
        交易开放C端小程序ID     */
    MiniappId  *int64 `json:"miniapp_id" required:"true" `
    /*
        起始页 defalutValue��0    */
    PageIndex  *int64 `json:"page_index,omitempty" required:"false" `
    /*
        每页大小 defalutValue��100    */
    PageSize  *int64 `json:"page_size,omitempty" required:"false" `
}

func (s *TaobaoOpentradeToolsItemsQueryRequest) SetMiniappId(v int64) *TaobaoOpentradeToolsItemsQueryRequest {
    s.MiniappId = &v
    return s
}
func (s *TaobaoOpentradeToolsItemsQueryRequest) SetPageIndex(v int64) *TaobaoOpentradeToolsItemsQueryRequest {
    s.PageIndex = &v
    return s
}
func (s *TaobaoOpentradeToolsItemsQueryRequest) SetPageSize(v int64) *TaobaoOpentradeToolsItemsQueryRequest {
    s.PageSize = &v
    return s
}

func (req *TaobaoOpentradeToolsItemsQueryRequest) ToMap() map[string]interface{} {
    paramMap := make(map[string]interface{})
    if(req.MiniappId != nil) {
        paramMap["miniapp_id"] = *req.MiniappId
    }
    if(req.PageIndex != nil) {
        paramMap["page_index"] = *req.PageIndex
    }
    if(req.PageSize != nil) {
        paramMap["page_size"] = *req.PageSize
    }
    return paramMap
}

func (req *TaobaoOpentradeToolsItemsQueryRequest) ToFileMap() map[string]interface{} {
    fileMap := make(map[string]interface{})
    return fileMap
}